package org.easy.control.controller;

import lombok.extern.slf4j.Slf4j;
import org.easy.module.service.SysDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @ClassName: IndexController
 * @Description: 页面跳转Controller
 * @Author zhouzhixin
 * @Date 2021/9/24
 * @Version 1.0
 */
@Slf4j
@Controller
public class IndexController {

    /**
     * 登录页
     *
     * @return
     */
    @GetMapping("/sign-in")
    public String signIn() {
        return "sign-in";
    }

    /**
     * 注册页
     *
     * @returnsign-up
     */
    @GetMapping("/sign-up")
    public String signUp() {
        return "sign-up";
    }

    /**
     * 邮箱验证页
     *
     * @return
     */
    @GetMapping("/email-check")
    public String emailCheck() {
        return "email-check";
    }

    /**
     * 数据字典页
     *
     * @return
     */
    @GetMapping("/dict")
    public String dict() {
        return "dict/dict";
    }

    /**
     * 数据字典-新增页
     *
     * @return
     */
    @GetMapping("/dictAdd")
    public String dictAdd() {
        return "dict/dict-add";
    }

    /**
     * 数据字典-数据页
     *
     * @return
     */
    @GetMapping("/dictData")
    public String dictData() {
        return "dict/dict-data";
    }

    /**
     * 临时页面
     *
     * @return
     */
    @GetMapping("/temp")
    public String temp() {
        return "temp/temp";
    }

}
